<me:UIMAPDEF x:Class="WPFExcelReport.TMAPDEF"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:IntexBL="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    Loaded="Window_Loaded"
                    x:Name="TV"
                    Background="White"   
     >
    <me:UIMAPDEF.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:BYTE2TR  x:Key="b2s"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIMAPDEF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition  Width="1*" /> 
        </Grid.ColumnDefinitions>
         <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="0,0,-0.2,0">
            <WrapPanel > 
                <ex:TXT72 MaxLength="8" Text="{Binding ART,ElementName=TV}" CharacterCasing="Upper" Width="80"/>
                <me:TSMP02 IsEdit="True" KEY="{Binding ART,ElementName=TV}" Width="180"/>
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=Query}}" Click="QueryCommand"></Button>
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=Convert}}" Click="SaveCommand"></Button>
            </WrapPanel>             
        </StackPanel>
        <StackPanel Grid.Row="1">
            <TextBlock>MDALLTAB1</TextBlock>
            <TextBlock TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3"  Text="{Binding Path=ALLTAB1,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDALLTAB2</TextBlock>
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ALLTAB2,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDALLTAB3</TextBlock>  
            <TextBlock TextWrapping="Wrap"   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ALLTAB3,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDALLTAB4</TextBlock>  
            <TextBlock TextWrapping="Wrap"   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ALLTAB4,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDALLTAB5</TextBlock>  
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ALLTAB5,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDALLTAB6</TextBlock> 
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ALLTAB6,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDALLTAB7</TextBlock>  
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ALLTAB7,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDZUSTAB1</TextBlock> 
            <TextBlock  TextWrapping="Wrap"  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ZUSTAB1,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
            <TextBlock>MDZUSTAB2</TextBlock> 
            <TextBlock TextWrapping="Wrap"   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ZUSTAB2,Source={StaticResource vwMaster},Converter={StaticResource gb2312}}" VerticalAlignment="Center"  />
        </StackPanel>
    </Grid>
</me:UIMAPDEF> 
